import BaseService from '../BaseService'
import factory from '../serviceFactory'

class AirIssueRuleService extends BaseService {
  addAirIssueRule = factory.makeAdd('airIssueRule', 'AirIssueRule')
  deleteAirIssueRule = factory.makeDelete('airIssueRule', 'AirIssueRule')
  batchDelete = factory.makeBatchDelete('airIssueRule', 'AirIssueRule')
  updateAirIssueRule = factory.makeUpdate('airIssueRule', 'AirIssueRule')
  // queryAirIssueRulePage = factory.makeQuery('airIssueRule', 'AirIssueRule')
  queryAirIssueRulePage = factory.makeGet('/api/airIssueRule/queryAirIssueRulePage')
  detailAirIssueRule = factory.makeDetail('airIssueRule', 'AirIssueRule')

  /**
   * 优先级设置
   * issueRulePrioritySet({issueRuleId, priType})
   */
  issueRulePrioritySet = factory.makePost('/api/airIssueRule/issueRulePrioritySet')

  /**
   * 修改规则状态
   * updateRuleStatus({id, orderStatus})
   * 0 停用  1 启用
   */
  updateRuleStatus = factory.makePost('/api/airIssueRule/updateRuleStatus')
}

export default new AirIssueRuleService()
